package com.ruoyi.ymapp.user.service.enums;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Lu.F
 * @version 1.0
 * @date 2022/11/8 23:02
 */
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
public enum LoginOrRegisterExceptionEnum {
    USER_NOT_EXISTS(1001,"用户不存在"),
    LOGIN_ERROR(1002,"密码或账号错误"),

    USER_EXISTS(1003,"账号已注册"),

    PARAM_NOT_VALIDATE(2001,"请输入有效值"),
    ;
    /**
     * 状态码
     */
    private int code;

    /**
     * 描述
     */
    private String desc;
}
